
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="Author:xxf">
		<link rel="STYLESHEET" type="text/css" href="/admin/css/style.css">
		<link rel="STYLESHEET" type="text/css" href="/admin/css/admin.css">
		<script type="text/javascript" src="/js/md5.js"></script>
		 <script language="JavaScript">
			
			function checkpassword(){
		
				var new1=document.myform.newpassword.value;
				var new2=document.myform.newpassword1.value;
				var old=document;myform.oldpassword.value;
				if(new1==""||new2==""||old==""){
					alert("信息不完整，请完善信息！");
					return false;
				}
				if(new1!=new2){
					alert("两次输入的新密码不一致");
					return false;
				}
				if(new1.lenth>20){
					alert("密码长度不符合要求,不能超过20个字符！");
					return false;
				}
				
				var hashold=hex_md5(document.forms["myform"].oldpassword.value);
					document.forms["myform"].oldpassword.value=hashold;
					
				var hashnew=hex_md5(document.forms["myform"].newpassword.value);
					document.forms["myform"].newpassword.value=hashnew;
			}
			
		</script>
	</head>

	<body>

		
		</br></br>
			<table style="width:100%;"align: left;border:1px">
				<tr>
				<td style="width: 100%">
					<span class="title">&nbsp;&nbsp;&nbsp;修改密码</span>
					<br>
				</td>
				</tr>
				<tr>
					<td  background="images/hr_1.gif"
						style="height: 1px; width: 100%">
						<div class="hr1">
						</div>
					</td>
				</tr>
			</table>
			</br></br></br></br></br>
 <form id="myform" name="myform" style="width:50%;" onsubmit="return checkpassword();" action="/admin/dochangepassword" method="post">
 				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red">${(errormessage)!}</font>
			<table style="width: 100%;align: left;border:0">
			
				<tr>
					<td style="width: 20%;text-align:right">原始密码：</td><td style="width: 80%; "><input id="oldpassword" name="oldpassword" style="width:60%" type="password"></td>
				</tr>
				<tr>
					<td style="width: 20%;text-align:right">新密码：</td><td style="width: 80%; "><input id="newpassword" name="newpassword" style="width:60%" type="password"></td>
				</tr>
				<tr>
					<td style="width: 20%;text-align:right">再次输入：</td><td style="width: 80%; "><input  id="newpassword1" name="newpassword1" style="width:60%" type="password"></td>
			</table>
			</br>
			
		
			<table style="width:70%">
				<tr align="center" >
					<td ><input type="submit"  class="buttonstyle"    value="确定"></td>
				</tr>
				<tr align="center" >
					<td >${changemessage!}</td>
				</tr>
			</table>
			<input type="hidden" name="changetype" value="${(firstchange)! }"> 
</form>
</body>
</html>